import {DynamicObject, PageParams} from "@/services/typings";
import {addData, deleteById, listData, pageData, put, updateById} from "@/services/base-request";

export const pageSysJobLog = (params: PageParams, options?: DynamicObject) => {
  return pageData('/sysJobLog', params, options)
}

export const listSysJobLog = (params: PageParams, options?: DynamicObject) => {
  return listData('/sysJobLog', params, options)
}
export const addSysJobLog = (data: any, options?: DynamicObject) => {
  return addData('/sysJobLog', data, options)
}

export const updateSysJobLog = (data: any, options?: DynamicObject) => {
  return updateById('/sysJobLog', data, options)
}

export const deleteSysJobLog = (id: string | number, options?: DynamicObject) => {
  return deleteById('/sysJobLog', id, options)
}
export const changeJobStatusAPI = (data: any, options?: DynamicObject) => {
  return put('/sysJobLog/changeStatus', data, options)
}
